﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CF.Framework.Engine.Misc
{
	public class AudioObject
	{
		internal AudioManager Manager { get; set; }

		public string AssetName { get; private set; }
		public Object AssetObject { get; private set; }
		
		internal AudioObject(string assetName, object assetObject)
		{
			this.AssetName = assetName;
			this.AssetObject = assetObject;
		}

		public void Play()
		{
			Manager.Play(this);
		}

		public void Play(bool isRepeating)
		{
			Manager.Play(this, isRepeating);
		}

		public void Stop()
		{
			Manager.Stop(this);
		}

		public void Pause()
		{
			Manager.Pause(this);
		}

		public void Resume()
		{
			Manager.Resume(this, true);
		}

		public void Resume(bool isRepeating)
		{
			Manager.Resume(this, isRepeating);
		}
	}
}
